script_dir=`dirname $0`
cd $script_dir/models/nnunet.3d_fullres
torch-model-archiver --model-name 3d_fullres --version 1.0 --model-file model.py --serialized-file ../../model-store/3d_fullres.pt --handler handler.py -r requirements.txt --extra-files requirements.txt,vision_3d_handler.py --export-path ../../model-store/ -f
cd -
torchserve --stop
torchserve  --start --model-store model-store/ --models mnist=mnist.mar 3d_fullres=3d_fullres.mar --no-config-snapshots --foreground
